<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\service\ShopInfo as sShopInfo;
use Biz\model\ShopBasicInfo as mShopBasicInfo;

$users=mShopBasicInfo::select('*');

$uids=array_column($users,'uid');

foreach($uids as $uid){
    sShopInfo::setShopNick($uid);
}